package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.AgentRebate;
import com.weixing.mall.provider.model.query.AgentRebateQuery;
import com.weixing.mall.provider.model.vo.AgentRebateVo;
import com.weixing.mall.provider.model.vo.AgentRebateWithdrawVo;

import java.math.BigDecimal;

/**
 * <p>
 * 代理商模块-代理商返利表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface IAgentRebateService extends IService<AgentRebate> {

    IPage<AgentRebateVo> selectListOfPage(Page page, AgentRebateQuery agentRebateQuery);

    AgentRebateVo rebateDetail(long id);

    IPage<AgentRebateWithdrawVo> getAgentRebateByWithdrawId(Page page,long id);

    IPage<AgentRebateVo> selctAgentRebateOfPage(Page initMpPage, Long agentId);

    BigDecimal countRebate(long agentId, String month);

    AgentRebate findByOrderIdAndAgentId(Long orderId, Long agentId);
}
